<%@ page import="java.time.LocalDate" %><%--
  Created by IntelliJ IDEA.
  User: xwj32
  Date: 2023-05-08
  Time: 23:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>预约挂号</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.2/dist/js/bootstrap.bundle.min.js"></script>
    <jsp:include page="include/mangerheadtag.jsp"/>
</head>
<body>
<jsp:include page="include/head.jsp"/>
<jsp:include page="include/menu.jsp"/>

<div class="container mt-3" style="margin-left: 300px;margin-top: 100px">
    <h2 style="margin-top: 100px"><img src="images/img/预约挂号.png">预约挂号</h2>
    <form action="<%=request.getContextPath()%>/ChooseDoctorServlet">
        <input type="hidden" name="action" value="GetDoctors">
        <div class="mb-3 mt-3">
            <label for="name">姓名：</label>
            <input type="text" class="form-control" id="name" placeholder="请输入姓名" name="name">
        </div>
        <div class="mb-3">
            <label for="phonenumber">电话号码：</label>
            <input type="text" class="form-control" id="phonenumber" placeholder="请输入电话号码" name="phonenumber">
        </div>
        <div class="mb-3">
            <label for="Idnumber">身份证号：</label>
            <input type="text" class="form-control" id="Idnumber" placeholder="请输入身份证号" name="IdNumber">
        </div>
        <p>性别：<input type="radio" class="form-check-input" id="man" name="sex" value="man" checked>
            <label class="form-check-label" for="man">男</label>
            <input type="radio" class="form-check-input" id="woman" name="sex" value="woman">
            <label class="form-check-label" for="woman">女</label>
        </p>

        <div class="form-check mb-3">
            <label class="form-check-label">
                <input class="form-check-input" type="checkbox" name="remember">记住我
            </label>
        </div>
        <div>
            <label for="birthday">出生日期</label>
            <input type="date" id="birthday" name="birthday"class="form-control" value="<%= LocalDate.now() %>">
        </div>

        <div style="margin-top: 10px;">
            选择科室:
            <select name="department"  class="form-select" aria-label="Default select example">
                <option value="1" selected >内科</option>
                <option value="2">外科</option>
                <option value="3">妇产科</option>
                <option value="4">儿科</option>
                <option value="5" >眼科</option>
                <option value="6">口腔科</option>
                <option value="7">皮肤科</option>
                <option value="8">传染病科</option>
                <option value="9">精神科</option>
                <option value="10">影像科</option>
                <option value="11" >麻醉科</option>
            </select>

            <div style="margin-top: 10px">
                急门诊选择：
                <select name="emergency" id="" class="form-select" aria-label="Default select example">
                    <option value="0" >急诊挂号</option>
                    <option value="1" selected>门诊挂号</option>
                </select>
            </div>
        </div>

        <div>
            <button type="submit" class="btn btn-primary" style="margin-top: 10px;">提交</button>
        </div>
    </form>
</div>

</body>
</html>


